<div class="row">
    <div class="span1 text-right">
        <h1>
            <?php echo $this->Html->link('<i class="icon-arrow-left-3"></i>', '/Admins', array('escape' => false, 'title' => 'Back')) ?>
        </h1>
    </div>
    <div class="span11">
        <?php if (isset($proTypes) && sizeof($proTypes) != 0) { ?>
            <?php foreach ($proTypes as $a): ?> 
                <div class="span8 text-left no-margin-left">
                    <h3 class="widget-title "><?php echo h($a['Property']['name_eng']); ?></h3>
                </div>
                <div class="span4 text-right">
                    <h3>
                        <?php echo $this->Html->link('<i class="icon-plus-2"></i> Add', '/PropertyTypes/add/'.$a['Property']['id'], array('escape' => false, 'title' => 'Add New')) ?>
                    </h3>
                </div>
                <div class="span12 no-margin-left margin-buttom">
                    <table width="100%">
                        <thead class="border-bottom">
                            <tr>
                                <th class="text-center" width='5%'>No</th>
                                <th  class="text-center" width='5%'>Status</th>
                                <th class="text-left">Name</th>
                                <th class="text-center" width='15%'>Actions</th>
                            </tr>
                        </thead>
                        <tbody>
                                <?php $i = 1; ?>
                                <?php foreach ($a['PropertyType'] as $b): ?>                        
                                    <tr>
                                        <td class="text-center"><?php echo $i ?></td>
                                        <td class="text-center"></td>
                                        <td><?php echo $b['name_eng'] ?></td>
                                        <td class="text-center">
                                            <?php echo $this->Html->link(
                                                    '<i class="icon-pencil"></i>', 
                                                    '/PropertyTypes/edit/' . $b['id'],
                                                    array('escape' => false, 'title' => 'View Details')) ?> 
                                            &nbsp;&nbsp;|&nbsp;&nbsp;
                                            <?php echo $this->Html->link(
                                                    '<i class="icon-remove"></i>', 
                                                    '/PropertyTypes/delete/' . $b['id'], 
                                                    array('escape' => false, 
                                                        'title' => 'Delete'), 
                                                        'Do you want to remove '.$b['name_eng'].'?') ?> 
                                        </td>
                                    </tr>
                                    <?php $i++; ?>
                                <?php endforeach; ?>                            
                        </tbody>
                    </table>
                </div>
            <?php endforeach; ?> 
        <?php } ?>
    </div>
</div>